namespace SmartSoft.SystemForms
{
    using SmartSoft;
    using SmartSoft.Controls;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormMemvars : FormControl
    {
        private BtnControl btnCancel;
        private BtnControl btnOk;
        private TabPage Page4;
        private TextNumeric txtMemvar29;
        private TextNumeric txtMemvar28;
        private TextControl txtMemvar27;
        private TextNumeric txtMemvar19;
        private LabelControl labelControl22;
        private LabelControl labelControl34;
        private LabelControl labelControl33;
        private PictureBox pictureBox6;
        private LabelControl labelControl32;
        private GroupBox groupBox8;
        private PictureBox pictureBox5;
        private LabelControl labelControl20;
        private GroupBox groupBox6;
        private LabelControl labelControl15;
        private TabPage Page2;
        private ChkControl chkMemvar12;
        private ChkControl chkMemvar10;
        private ChkControl chkMemvar11;
        private PictureBox pictureBox3;
        private LabelControl labelControl1;
        private PictureBox pictureBox2;
        private PictureBox pictureBox1;
        private GroupBox groupBox1;
        private ChkControl chkMemvar04;
        private ChkControl chkMemvar03;
        private ChkControl chkMemvar01;
        private ChkControl chkMemvar06;
        private ChkControl chkMemvar05;
        private TabPage Page1;
        private GBoxControl GBoxMemvar02;
        private RdioControl rdioControl14;
        private RdioControl rdioControl15;
        private RdioControl rdioControl16;
        private GBoxControl GBoxMemvar01;
        private RdioControl rdioControl2;
        private RdioControl rdioControl1;
        private GBoxControl GBoxMemvar05;
        private RdioControl rdioControl17;
        private RdioControl rdioControl18;
        private RdioControl rdioControl19;
        private GBoxControl GBoxMemvar08;
        private RdioControl rdioControl7;
        private RdioControl rdioControl11;
        private RdioControl rdioControl12;
        private RdioControl rdioControl13;
        private TabContol tabMemvar;
        private IContainer components;

        public FormMemvars()
        {
            this.InitializeComponent();
            this.GBoxMemvar01.Value = AppInstance.Bilingual;
            this.GBoxMemvar02.Value = AppInstance.CostingMethod;
            //this.GBoxMemvar04.Value = AppInstance.ExchangeRate;
            this.GBoxMemvar05.Value = AppInstance.StockWarning;
            //this.GBoxMemvar06.Value = AppInstance.DebitWarning;
            //this.GBoxMemvar07.Value = AppInstance.DiscountType;
            this.GBoxMemvar08.Value = AppInstance.ShowDateTime;
            this.chkMemvar10.Checked = AppInstance.FilterByUser;
            this.chkMemvar01.Checked = AppInstance.PostDefault;
            //this.chkMemvar02.Checked = AppInstance.LockDefault;
            this.chkMemvar03.Checked = AppInstance.CostingInvoice;
            this.chkMemvar04.Checked = AppInstance.ChangedInvoice;
            this.chkMemvar05.Checked = AppInstance.LockAfterPrint;
            this.chkMemvar11.Checked = AppInstance.ObjectFilter;
            this.chkMemvar12.Checked = AppInstance.ItemFilter;
            this.chkMemvar06.Checked = AppInstance.HistoryCtrl;
            //this.chkMemvar14.Checked = AppInstance.LocationCtrl;
            //this.chkMemvar07.Checked = AppInstance.LotNumberCtrl;
            //this.chkMemvar08.Checked = AppInstance.DeadLineCtrl;
            //this.chkMemvar09.Checked = AppInstance.VATInPrice;
            //this.chkMemvar13.Checked = AppInstance.BarcodeReader;
            //this.txtMemvar01.Text = AppInstance.Currencies;
            //this.txtMemvar02.Text = AppInstance.DefaultCurrency;
            //this.txtMemvar03.Text = AppInstance.Account5156;
            //this.txtMemvar04.Text = AppInstance.Account6356;
            //this.txtMemvar05.Text = AppInstance.Account1331;
            //this.txtMemvar06.Text = AppInstance.Account33311;
            //this.txtMemvar07.Text = AppInstance.Account33332;
            //this.txtMemvar08.Text = AppInstance.Account33331;
            //this.txtMemvar09.Text = AppInstance.Account3332;
            //this.txtMemvar10.Text = AppInstance.Account521;
            //this.GBoxMemvar09.Value = AppInstance.DefLanguage;
            //this.txtMemvar22.Text = AppInstance.FontName;
            //this.txtMemvar23.Value = AppInstance.FontSize;
            //this.txtMemvar12.Value = AppInstance.NumberDigits;
            //this.txtMemvar24.Value = AppInstance.QuantityDecimals;
            //this.txtMemvar25.Value = AppInstance.NormQuantity;
            //this.txtMemvar26.Value = AppInstance.RatioFormat;
            //this.txtMemvar13.Value = AppInstance.ExchangeFormat;
            //this.txtMemvar15.Value = AppInstance.FCPriceDecimals;
            //this.txtMemvar17.Value = AppInstance.LCPriceDecimals;
            //this.txtMemvar14.Value = AppInstance.FCAmountDecimals;
            //this.txtMemvar16.Value = AppInstance.LCAmountDecimals;
            //this.txtMemvar18.Value = AppInstance.PercentDecimals;
            //this.txtMemvar19.Value = AppInstance.AmountRange;
            //this.txtMemvar20.Value = AppInstance.VATRange;
            //this.txtMemvar21.Value = AppInstance.DiscountRange;
            //this.txtMemvar27.Text = AppInstance.DefaultSubsidiary;
            this.txtMemvar28.Value = AppInstance.DaysFilter;
            this.txtMemvar29.Value = AppInstance.DaysBackup;
            //this.txtMemvar30.Text = AppInstance.PaymentMethod;
            //this.txtMemvar31.Text = AppInstance.ProcessCode;
            //this.txtMemvar32.Text = AppInstance.DefaultCode1;
            //this.txtMemvar33.Text = AppInstance.DefaultCode2;
            //this.txtMemvar34.Text = AppInstance.DefaultCode3;
            //this.txtMemvar02.InputMask = AppInstance.Currencies;
            //this.btnDeclare.Visible = AppInstance.BarcodeReader;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        //private void btnDeclare_Click(object sender, EventArgs e)
        //{
        //    new FormBarcodeMemvars().ShowDialog();
        //}

        private void btnOk_Click(object sender, EventArgs e)
        {
            this.Register();
            base.Close();
        }

        //private void chkMemvar13_CheckedChanged(object sender, EventArgs e)
        //{
        //    this.btnDeclare.Visible = ((ChkControl) sender).Checked;
        //}

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMemvars));
            this.btnOk = new SmartSoft.Controls.BtnControl();
            this.btnCancel = new SmartSoft.Controls.BtnControl();
            this.Page4 = new System.Windows.Forms.TabPage();
            this.txtMemvar29 = new SmartSoft.Controls.TextNumeric();
            this.txtMemvar28 = new SmartSoft.Controls.TextNumeric();
            this.txtMemvar27 = new SmartSoft.Controls.TextControl();
            this.txtMemvar19 = new SmartSoft.Controls.TextNumeric();
            this.labelControl22 = new SmartSoft.Controls.LabelControl();
            this.labelControl34 = new SmartSoft.Controls.LabelControl();
            this.labelControl33 = new SmartSoft.Controls.LabelControl();
            this.pictureBox6 = new System.Windows.Forms.PictureBox();
            this.labelControl32 = new SmartSoft.Controls.LabelControl();
            this.groupBox8 = new System.Windows.Forms.GroupBox();
            this.pictureBox5 = new System.Windows.Forms.PictureBox();
            this.labelControl20 = new SmartSoft.Controls.LabelControl();
            this.groupBox6 = new System.Windows.Forms.GroupBox();
            this.labelControl15 = new SmartSoft.Controls.LabelControl();
            this.Page2 = new System.Windows.Forms.TabPage();
            this.chkMemvar12 = new SmartSoft.Controls.ChkControl();
            this.chkMemvar10 = new SmartSoft.Controls.ChkControl();
            this.chkMemvar11 = new SmartSoft.Controls.ChkControl();
            this.pictureBox3 = new System.Windows.Forms.PictureBox();
            this.labelControl1 = new SmartSoft.Controls.LabelControl();
            this.pictureBox2 = new System.Windows.Forms.PictureBox();
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.chkMemvar04 = new SmartSoft.Controls.ChkControl();
            this.chkMemvar03 = new SmartSoft.Controls.ChkControl();
            this.chkMemvar01 = new SmartSoft.Controls.ChkControl();
            this.chkMemvar06 = new SmartSoft.Controls.ChkControl();
            this.chkMemvar05 = new SmartSoft.Controls.ChkControl();
            this.Page1 = new System.Windows.Forms.TabPage();
            this.GBoxMemvar02 = new SmartSoft.Controls.GBoxControl();
            this.rdioControl14 = new SmartSoft.Controls.RdioControl();
            this.rdioControl15 = new SmartSoft.Controls.RdioControl();
            this.rdioControl16 = new SmartSoft.Controls.RdioControl();
            this.GBoxMemvar01 = new SmartSoft.Controls.GBoxControl();
            this.rdioControl2 = new SmartSoft.Controls.RdioControl();
            this.rdioControl1 = new SmartSoft.Controls.RdioControl();
            this.GBoxMemvar05 = new SmartSoft.Controls.GBoxControl();
            this.rdioControl17 = new SmartSoft.Controls.RdioControl();
            this.rdioControl18 = new SmartSoft.Controls.RdioControl();
            this.rdioControl19 = new SmartSoft.Controls.RdioControl();
            this.GBoxMemvar08 = new SmartSoft.Controls.GBoxControl();
            this.rdioControl7 = new SmartSoft.Controls.RdioControl();
            this.rdioControl11 = new SmartSoft.Controls.RdioControl();
            this.rdioControl12 = new SmartSoft.Controls.RdioControl();
            this.rdioControl13 = new SmartSoft.Controls.RdioControl();
            this.tabMemvar = new SmartSoft.Controls.TabContol();
            this.Page4.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
            this.Page2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.Page1.SuspendLayout();
            this.GBoxMemvar02.SuspendLayout();
            this.GBoxMemvar01.SuspendLayout();
            this.GBoxMemvar05.SuspendLayout();
            this.GBoxMemvar08.SuspendLayout();
            this.tabMemvar.SuspendLayout();
            this.SuspendLayout();
            // 
            // btnOk
            // 
            this.btnOk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.btnOk.Location = new System.Drawing.Point(400, 238);
            this.btnOk.Name = "btnOk";
            this.btnOk.Size = new System.Drawing.Size(75, 23);
            this.btnOk.TabIndex = 2;
            this.btnOk.Text = "&Chấp nhận";
            this.btnOk.UseVisualStyleBackColor = true;
            this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
            // 
            // btnCancel
            // 
            this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.btnCancel.Font = new System.Drawing.Font("Arial", 8.25F);
            this.btnCancel.Location = new System.Drawing.Point(483, 238);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new System.Drawing.Size(75, 23);
            this.btnCancel.TabIndex = 3;
            this.btnCancel.Text = "&Hủy bỏ";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
            // 
            // Page4
            // 
            this.Page4.Controls.Add(this.txtMemvar29);
            this.Page4.Controls.Add(this.txtMemvar28);
            this.Page4.Controls.Add(this.txtMemvar27);
            this.Page4.Controls.Add(this.txtMemvar19);
            this.Page4.Controls.Add(this.labelControl22);
            this.Page4.Controls.Add(this.labelControl34);
            this.Page4.Controls.Add(this.labelControl33);
            this.Page4.Controls.Add(this.pictureBox6);
            this.Page4.Controls.Add(this.labelControl32);
            this.Page4.Controls.Add(this.groupBox8);
            this.Page4.Controls.Add(this.pictureBox5);
            this.Page4.Controls.Add(this.labelControl20);
            this.Page4.Controls.Add(this.groupBox6);
            this.Page4.Controls.Add(this.labelControl15);
            this.Page4.Location = new System.Drawing.Point(4, 23);
            this.Page4.Name = "Page4";
            this.Page4.Padding = new System.Windows.Forms.Padding(3);
            this.Page4.Size = new System.Drawing.Size(544, 195);
            this.Page4.TabIndex = 3;
            this.Page4.Text = "Phần III";
            this.Page4.UseVisualStyleBackColor = true;
            // 
            // txtMemvar29
            // 
            this.txtMemvar29.AllowNegative = false;
            this.txtMemvar29.BackColor = System.Drawing.Color.White;
            this.txtMemvar29.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMemvar29.Location = new System.Drawing.Point(292, 116);
            this.txtMemvar29.Name = "txtMemvar29";
            this.txtMemvar29.NumericScaleOnFocus = 0;
            this.txtMemvar29.NumericScaleOnLostFocus = 0;
            this.txtMemvar29.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtMemvar29.OldValue = null;
            this.txtMemvar29.Size = new System.Drawing.Size(76, 20);
            this.txtMemvar29.TabIndex = 5;
            this.txtMemvar29.Text = "0";
            this.txtMemvar29.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtMemvar29.UserTextNumericFormat = SmartSoft.AppInstance.TextNumericFormat.None;
            this.txtMemvar29.Value = ((object)(resources.GetObject("txtMemvar29.Value")));
            this.txtMemvar29.ZeroIsShown = true;
            this.txtMemvar29.ZeroIsValid = false;
            // 
            // txtMemvar28
            // 
            this.txtMemvar28.AllowNegative = false;
            this.txtMemvar28.BackColor = System.Drawing.Color.White;
            this.txtMemvar28.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMemvar28.Location = new System.Drawing.Point(292, 90);
            this.txtMemvar28.Name = "txtMemvar28";
            this.txtMemvar28.NumericScaleOnFocus = 0;
            this.txtMemvar28.NumericScaleOnLostFocus = 0;
            this.txtMemvar28.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtMemvar28.OldValue = null;
            this.txtMemvar28.Size = new System.Drawing.Size(76, 20);
            this.txtMemvar28.TabIndex = 4;
            this.txtMemvar28.Text = "0";
            this.txtMemvar28.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtMemvar28.UserTextNumericFormat = SmartSoft.AppInstance.TextNumericFormat.None;
            this.txtMemvar28.Value = ((object)(resources.GetObject("txtMemvar28.Value")));
            this.txtMemvar28.ZeroIsShown = true;
            // 
            // txtMemvar27
            // 
            this.txtMemvar27.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMemvar27.CheckTextSearched = false;
            this.txtMemvar27.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMemvar27.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMemvar27.Location = new System.Drawing.Point(292, 64);
            this.txtMemvar27.Name = "txtMemvar27";
            this.txtMemvar27.OldValue = null;
            this.txtMemvar27.Size = new System.Drawing.Size(76, 20);
            this.txtMemvar27.TabIndex = 3;
            this.txtMemvar27.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtMemvar27.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtMemvar27.Value = ((object)(resources.GetObject("txtMemvar27.Value")));
            // 
            // txtMemvar19
            // 
            this.txtMemvar19.BackColor = System.Drawing.Color.White;
            this.txtMemvar19.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMemvar19.Location = new System.Drawing.Point(292, 27);
            this.txtMemvar19.Name = "txtMemvar19";
            this.txtMemvar19.NumericScaleOnFocus = 0;
            this.txtMemvar19.NumericScaleOnLostFocus = 0;
            this.txtMemvar19.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtMemvar19.OldValue = null;
            this.txtMemvar19.Size = new System.Drawing.Size(76, 20);
            this.txtMemvar19.TabIndex = 0;
            this.txtMemvar19.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtMemvar19.UserTextNumericFormat = SmartSoft.AppInstance.TextNumericFormat.LocalAmount;
            this.txtMemvar19.Value = ((object)(resources.GetObject("txtMemvar19.Value")));
            // 
            // labelControl22
            // 
            this.labelControl22.AutoSize = true;
            this.labelControl22.Font = new System.Drawing.Font("Arial", 8.25F);
            this.labelControl22.Location = new System.Drawing.Point(18, 119);
            this.labelControl22.Name = "labelControl22";
            this.labelControl22.Size = new System.Drawing.Size(267, 14);
            this.labelControl22.TabIndex = 73;
            this.labelControl22.Text = "Thời gian định kỳ tự động tạo file lưu trữ số liệu (ngày)";
            // 
            // labelControl34
            // 
            this.labelControl34.AutoSize = true;
            this.labelControl34.Font = new System.Drawing.Font("Arial", 8.25F);
            this.labelControl34.Location = new System.Drawing.Point(18, 93);
            this.labelControl34.Name = "labelControl34";
            this.labelControl34.Size = new System.Drawing.Size(215, 14);
            this.labelControl34.TabIndex = 63;
            this.labelControl34.Text = "Số ngày lọc kể từ ngày chứng từ cuối cùng";
            // 
            // labelControl33
            // 
            this.labelControl33.AutoSize = true;
            this.labelControl33.Font = new System.Drawing.Font("Arial", 8.25F);
            this.labelControl33.Location = new System.Drawing.Point(18, 67);
            this.labelControl33.Name = "labelControl33";
            this.labelControl33.Size = new System.Drawing.Size(117, 14);
            this.labelControl33.TabIndex = 60;
            this.labelControl33.Text = "Đơn vị cơ sở mặc định";
            // 
            // pictureBox6
            // 
            this.pictureBox6.Location = new System.Drawing.Point(534, 107);
            this.pictureBox6.Name = "pictureBox6";
            this.pictureBox6.Size = new System.Drawing.Size(10, 26);
            this.pictureBox6.TabIndex = 59;
            this.pictureBox6.TabStop = false;
            // 
            // labelControl32
            // 
            this.labelControl32.AutoSize = true;
            this.labelControl32.Font = new System.Drawing.Font("Arial", 8.25F);
            this.labelControl32.ForeColor = System.Drawing.SystemColors.ActiveCaption;
            this.labelControl32.Location = new System.Drawing.Point(5, 45);
            this.labelControl32.Name = "labelControl32";
            this.labelControl32.Size = new System.Drawing.Size(93, 14);
            this.labelControl32.TabIndex = 58;
            this.labelControl32.Text = "Các tham số khác";
            // 
            // groupBox8
            // 
            this.groupBox8.Location = new System.Drawing.Point(18, 54);
            this.groupBox8.Name = "groupBox8";
            this.groupBox8.Size = new System.Drawing.Size(518, 2);
            this.groupBox8.TabIndex = 57;
            this.groupBox8.TabStop = false;
            this.groupBox8.Text = "groupBox8";
            // 
            // pictureBox5
            // 
            this.pictureBox5.Location = new System.Drawing.Point(534, 5);
            this.pictureBox5.Name = "pictureBox5";
            this.pictureBox5.Size = new System.Drawing.Size(10, 26);
            this.pictureBox5.TabIndex = 41;
            this.pictureBox5.TabStop = false;
            // 
            // labelControl20
            // 
            this.labelControl20.AutoSize = true;
            this.labelControl20.Font = new System.Drawing.Font("Arial", 8.25F);
            this.labelControl20.ForeColor = System.Drawing.SystemColors.ActiveCaption;
            this.labelControl20.Location = new System.Drawing.Point(5, 9);
            this.labelControl20.Name = "labelControl20";
            this.labelControl20.Size = new System.Drawing.Size(64, 14);
            this.labelControl20.TabIndex = 40;
            this.labelControl20.Text = "Làm tròn số";
            // 
            // groupBox6
            // 
            this.groupBox6.Location = new System.Drawing.Point(18, 18);
            this.groupBox6.Name = "groupBox6";
            this.groupBox6.Size = new System.Drawing.Size(518, 2);
            this.groupBox6.TabIndex = 39;
            this.groupBox6.TabStop = false;
            this.groupBox6.Text = "groupBox6";
            // 
            // labelControl15
            // 
            this.labelControl15.AutoSize = true;
            this.labelControl15.Font = new System.Drawing.Font("Arial", 8.25F);
            this.labelControl15.Location = new System.Drawing.Point(18, 29);
            this.labelControl15.Name = "labelControl15";
            this.labelControl15.Size = new System.Drawing.Size(201, 14);
            this.labelControl15.TabIndex = 36;
            this.labelControl15.Text = "Chênh lệch giữa <giá x lượng> và <tiền>";
            // 
            // Page2
            // 
            this.Page2.Controls.Add(this.chkMemvar12);
            this.Page2.Controls.Add(this.chkMemvar10);
            this.Page2.Controls.Add(this.chkMemvar11);
            this.Page2.Controls.Add(this.pictureBox3);
            this.Page2.Controls.Add(this.labelControl1);
            this.Page2.Controls.Add(this.pictureBox2);
            this.Page2.Controls.Add(this.pictureBox1);
            this.Page2.Controls.Add(this.groupBox1);
            this.Page2.Controls.Add(this.chkMemvar04);
            this.Page2.Controls.Add(this.chkMemvar03);
            this.Page2.Controls.Add(this.chkMemvar01);
            this.Page2.Controls.Add(this.chkMemvar06);
            this.Page2.Controls.Add(this.chkMemvar05);
            this.Page2.Location = new System.Drawing.Point(4, 23);
            this.Page2.Name = "Page2";
            this.Page2.Padding = new System.Windows.Forms.Padding(3);
            this.Page2.Size = new System.Drawing.Size(544, 195);
            this.Page2.TabIndex = 1;
            this.Page2.Text = "Phần II";
            this.Page2.UseVisualStyleBackColor = true;
            // 
            // chkMemvar12
            // 
            this.chkMemvar12.AutoSize = true;
            this.chkMemvar12.Font = new System.Drawing.Font("Arial", 8.25F);
            this.chkMemvar12.Location = new System.Drawing.Point(296, 28);
            this.chkMemvar12.Name = "chkMemvar12";
            this.chkMemvar12.Size = new System.Drawing.Size(203, 18);
            this.chkMemvar12.TabIndex = 7;
            this.chkMemvar12.Text = "Truy cập danh mục vật tư theo nhóm";
            this.chkMemvar12.UseVisualStyleBackColor = true;
            // 
            // chkMemvar10
            // 
            this.chkMemvar10.AutoSize = true;
            this.chkMemvar10.Font = new System.Drawing.Font("Arial", 8.25F);
            this.chkMemvar10.Location = new System.Drawing.Point(18, 28);
            this.chkMemvar10.Name = "chkMemvar10";
            this.chkMemvar10.Size = new System.Drawing.Size(163, 18);
            this.chkMemvar10.TabIndex = 0;
            this.chkMemvar10.Text = "Lọc chứng từ theo người lập";
            this.chkMemvar10.UseVisualStyleBackColor = true;
            // 
            // chkMemvar11
            // 
            this.chkMemvar11.AutoSize = true;
            this.chkMemvar11.Font = new System.Drawing.Font("Arial", 8.25F);
            this.chkMemvar11.Location = new System.Drawing.Point(296, 48);
            this.chkMemvar11.Name = "chkMemvar11";
            this.chkMemvar11.Size = new System.Drawing.Size(221, 18);
            this.chkMemvar11.TabIndex = 6;
            this.chkMemvar11.Text = "Truy cập danh mục đối tượng theo nhóm";
            this.chkMemvar11.UseVisualStyleBackColor = true;
            // 
            // pictureBox3
            // 
            this.pictureBox3.Location = new System.Drawing.Point(534, 213);
            this.pictureBox3.Name = "pictureBox3";
            this.pictureBox3.Size = new System.Drawing.Size(10, 26);
            this.pictureBox3.TabIndex = 21;
            this.pictureBox3.TabStop = false;
            // 
            // labelControl1
            // 
            this.labelControl1.AutoSize = true;
            this.labelControl1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.labelControl1.ForeColor = System.Drawing.SystemColors.ActiveCaption;
            this.labelControl1.Location = new System.Drawing.Point(5, 9);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new System.Drawing.Size(81, 14);
            this.labelControl1.TabIndex = 0;
            this.labelControl1.Text = "Tham số chung";
            // 
            // pictureBox2
            // 
            this.pictureBox2.Location = new System.Drawing.Point(534, 168);
            this.pictureBox2.Name = "pictureBox2";
            this.pictureBox2.Size = new System.Drawing.Size(10, 26);
            this.pictureBox2.TabIndex = 15;
            this.pictureBox2.TabStop = false;
            // 
            // pictureBox1
            // 
            this.pictureBox1.Location = new System.Drawing.Point(534, 3);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new System.Drawing.Size(10, 26);
            this.pictureBox1.TabIndex = 12;
            this.pictureBox1.TabStop = false;
            // 
            // groupBox1
            // 
            this.groupBox1.Location = new System.Drawing.Point(18, 16);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(518, 2);
            this.groupBox1.TabIndex = 11;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "groupBox1";
            // 
            // chkMemvar04
            // 
            this.chkMemvar04.AutoSize = true;
            this.chkMemvar04.Font = new System.Drawing.Font("Arial", 8.25F);
            this.chkMemvar04.Location = new System.Drawing.Point(18, 89);
            this.chkMemvar04.Name = "chkMemvar04";
            this.chkMemvar04.Size = new System.Drawing.Size(229, 18);
            this.chkMemvar04.TabIndex = 4;
            this.chkMemvar04.Text = "Cấm sửa, xóa chứng từ do người khác lập";
            this.chkMemvar04.UseVisualStyleBackColor = true;
            // 
            // chkMemvar03
            // 
            this.chkMemvar03.AutoSize = true;
            this.chkMemvar03.Font = new System.Drawing.Font("Arial", 8.25F);
            this.chkMemvar03.Location = new System.Drawing.Point(18, 68);
            this.chkMemvar03.Name = "chkMemvar03";
            this.chkMemvar03.Size = new System.Drawing.Size(149, 18);
            this.chkMemvar03.TabIndex = 3;
            this.chkMemvar03.Text = "Lập chứng từ khi phân bổ";
            this.chkMemvar03.UseVisualStyleBackColor = true;
            // 
            // chkMemvar01
            // 
            this.chkMemvar01.AutoSize = true;
            this.chkMemvar01.Font = new System.Drawing.Font("Arial", 8.25F);
            this.chkMemvar01.Location = new System.Drawing.Point(18, 48);
            this.chkMemvar01.Name = "chkMemvar01";
            this.chkMemvar01.Size = new System.Drawing.Size(134, 18);
            this.chkMemvar01.TabIndex = 1;
            this.chkMemvar01.Text = "Duyệt khi lập chứng từ";
            this.chkMemvar01.UseVisualStyleBackColor = true;
            // 
            // chkMemvar06
            // 
            this.chkMemvar06.AutoSize = true;
            this.chkMemvar06.Font = new System.Drawing.Font("Arial", 8.25F);
            this.chkMemvar06.Location = new System.Drawing.Point(296, 89);
            this.chkMemvar06.Name = "chkMemvar06";
            this.chkMemvar06.Size = new System.Drawing.Size(149, 18);
            this.chkMemvar06.TabIndex = 8;
            this.chkMemvar06.Text = "Theo dõi lịch sử chứng từ";
            this.chkMemvar06.UseVisualStyleBackColor = true;
            // 
            // chkMemvar05
            // 
            this.chkMemvar05.AutoSize = true;
            this.chkMemvar05.Enabled = false;
            this.chkMemvar05.Font = new System.Drawing.Font("Arial", 8.25F);
            this.chkMemvar05.Location = new System.Drawing.Point(296, 68);
            this.chkMemvar05.Name = "chkMemvar05";
            this.chkMemvar05.Size = new System.Drawing.Size(146, 18);
            this.chkMemvar05.TabIndex = 5;
            this.chkMemvar05.Text = "Khóa chứng từ sau khi in";
            this.chkMemvar05.UseVisualStyleBackColor = true;
            // 
            // Page1
            // 
            this.Page1.Controls.Add(this.GBoxMemvar02);
            this.Page1.Controls.Add(this.GBoxMemvar01);
            this.Page1.Controls.Add(this.GBoxMemvar05);
            this.Page1.Controls.Add(this.GBoxMemvar08);
            this.Page1.Location = new System.Drawing.Point(4, 23);
            this.Page1.Name = "Page1";
            this.Page1.Padding = new System.Windows.Forms.Padding(3);
            this.Page1.Size = new System.Drawing.Size(544, 195);
            this.Page1.TabIndex = 0;
            this.Page1.Text = "Phần I";
            this.Page1.UseVisualStyleBackColor = true;
            // 
            // GBoxMemvar02
            // 
            this.GBoxMemvar02.Controls.Add(this.rdioControl14);
            this.GBoxMemvar02.Controls.Add(this.rdioControl15);
            this.GBoxMemvar02.Controls.Add(this.rdioControl16);
            this.GBoxMemvar02.Font = new System.Drawing.Font("Arial", 8.25F);
            this.GBoxMemvar02.Location = new System.Drawing.Point(283, 99);
            this.GBoxMemvar02.Name = "GBoxMemvar02";
            this.GBoxMemvar02.OptionBox = true;
            this.GBoxMemvar02.Size = new System.Drawing.Size(253, 82);
            this.GBoxMemvar02.TabIndex = 1;
            this.GBoxMemvar02.TabStop = false;
            this.GBoxMemvar02.Text = "Phương pháp tính giá xuất kho";
            // 
            // rdioControl14
            // 
            this.rdioControl14.AutoSize = true;
            this.rdioControl14.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl14.Location = new System.Drawing.Point(17, 58);
            this.rdioControl14.Name = "rdioControl14";
            this.rdioControl14.Size = new System.Drawing.Size(134, 18);
            this.rdioControl14.TabIndex = 2;
            this.rdioControl14.Text = "Nhập trước xuất trước";
            this.rdioControl14.UseVisualStyleBackColor = true;
            // 
            // rdioControl15
            // 
            this.rdioControl15.AutoSize = true;
            this.rdioControl15.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl15.Location = new System.Drawing.Point(17, 38);
            this.rdioControl15.Name = "rdioControl15";
            this.rdioControl15.Size = new System.Drawing.Size(106, 18);
            this.rdioControl15.TabIndex = 1;
            this.rdioControl15.Text = "Trung bình tháng";
            this.rdioControl15.UseVisualStyleBackColor = true;
            // 
            // rdioControl16
            // 
            this.rdioControl16.AutoSize = true;
            this.rdioControl16.Checked = true;
            this.rdioControl16.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl16.Location = new System.Drawing.Point(17, 18);
            this.rdioControl16.Name = "rdioControl16";
            this.rdioControl16.Size = new System.Drawing.Size(114, 18);
            this.rdioControl16.TabIndex = 0;
            this.rdioControl16.TabStop = true;
            this.rdioControl16.Text = "Trung bình di động";
            this.rdioControl16.UseVisualStyleBackColor = true;
            // 
            // GBoxMemvar01
            // 
            this.GBoxMemvar01.Controls.Add(this.rdioControl2);
            this.GBoxMemvar01.Controls.Add(this.rdioControl1);
            this.GBoxMemvar01.Font = new System.Drawing.Font("Arial", 8.25F);
            this.GBoxMemvar01.Location = new System.Drawing.Point(8, 11);
            this.GBoxMemvar01.Name = "GBoxMemvar01";
            this.GBoxMemvar01.OptionBox = true;
            this.GBoxMemvar01.Size = new System.Drawing.Size(253, 61);
            this.GBoxMemvar01.TabIndex = 0;
            this.GBoxMemvar01.TabStop = false;
            this.GBoxMemvar01.Text = "Diễn giải của chứng từ";
            // 
            // rdioControl2
            // 
            this.rdioControl2.AutoSize = true;
            this.rdioControl2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl2.Location = new System.Drawing.Point(17, 38);
            this.rdioControl2.Name = "rdioControl2";
            this.rdioControl2.Size = new System.Drawing.Size(126, 18);
            this.rdioControl2.TabIndex = 1;
            this.rdioControl2.Text = "Song ngữ: Việt - Anh";
            this.rdioControl2.UseVisualStyleBackColor = true;
            // 
            // rdioControl1
            // 
            this.rdioControl1.AutoSize = true;
            this.rdioControl1.Checked = true;
            this.rdioControl1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl1.Location = new System.Drawing.Point(17, 18);
            this.rdioControl1.Name = "rdioControl1";
            this.rdioControl1.Size = new System.Drawing.Size(73, 18);
            this.rdioControl1.TabIndex = 0;
            this.rdioControl1.TabStop = true;
            this.rdioControl1.Text = "Tiếng Việt";
            this.rdioControl1.UseVisualStyleBackColor = true;
            // 
            // GBoxMemvar05
            // 
            this.GBoxMemvar05.Controls.Add(this.rdioControl17);
            this.GBoxMemvar05.Controls.Add(this.rdioControl18);
            this.GBoxMemvar05.Controls.Add(this.rdioControl19);
            this.GBoxMemvar05.Font = new System.Drawing.Font("Arial", 8.25F);
            this.GBoxMemvar05.Location = new System.Drawing.Point(283, 11);
            this.GBoxMemvar05.Name = "GBoxMemvar05";
            this.GBoxMemvar05.OptionBox = true;
            this.GBoxMemvar05.Size = new System.Drawing.Size(253, 82);
            this.GBoxMemvar05.TabIndex = 4;
            this.GBoxMemvar05.TabStop = false;
            this.GBoxMemvar05.Text = "Thông báo khi số lượng xuất lớn hơn tồn kho";
            // 
            // rdioControl17
            // 
            this.rdioControl17.AutoSize = true;
            this.rdioControl17.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl17.Location = new System.Drawing.Point(17, 58);
            this.rdioControl17.Name = "rdioControl17";
            this.rdioControl17.Size = new System.Drawing.Size(138, 18);
            this.rdioControl17.TabIndex = 2;
            this.rdioControl17.Text = "Thông báo và cấm xuất";
            this.rdioControl17.UseVisualStyleBackColor = true;
            // 
            // rdioControl18
            // 
            this.rdioControl18.AutoSize = true;
            this.rdioControl18.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl18.Location = new System.Drawing.Point(17, 38);
            this.rdioControl18.Name = "rdioControl18";
            this.rdioControl18.Size = new System.Drawing.Size(38, 18);
            this.rdioControl18.TabIndex = 1;
            this.rdioControl18.Text = "Có";
            this.rdioControl18.UseVisualStyleBackColor = true;
            // 
            // rdioControl19
            // 
            this.rdioControl19.AutoSize = true;
            this.rdioControl19.Checked = true;
            this.rdioControl19.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl19.Location = new System.Drawing.Point(17, 18);
            this.rdioControl19.Name = "rdioControl19";
            this.rdioControl19.Size = new System.Drawing.Size(56, 18);
            this.rdioControl19.TabIndex = 0;
            this.rdioControl19.TabStop = true;
            this.rdioControl19.Text = "Không";
            this.rdioControl19.UseVisualStyleBackColor = true;
            // 
            // GBoxMemvar08
            // 
            this.GBoxMemvar08.Controls.Add(this.rdioControl7);
            this.GBoxMemvar08.Controls.Add(this.rdioControl11);
            this.GBoxMemvar08.Controls.Add(this.rdioControl12);
            this.GBoxMemvar08.Controls.Add(this.rdioControl13);
            this.GBoxMemvar08.Font = new System.Drawing.Font("Arial", 8.25F);
            this.GBoxMemvar08.Location = new System.Drawing.Point(8, 79);
            this.GBoxMemvar08.Name = "GBoxMemvar08";
            this.GBoxMemvar08.OptionBox = true;
            this.GBoxMemvar08.Size = new System.Drawing.Size(253, 102);
            this.GBoxMemvar08.TabIndex = 7;
            this.GBoxMemvar08.TabStop = false;
            this.GBoxMemvar08.Text = "Hiện ngày giờ khi in";
            // 
            // rdioControl7
            // 
            this.rdioControl7.AutoSize = true;
            this.rdioControl7.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl7.Location = new System.Drawing.Point(17, 78);
            this.rdioControl7.Name = "rdioControl7";
            this.rdioControl7.Size = new System.Drawing.Size(124, 18);
            this.rdioControl7.TabIndex = 3;
            this.rdioControl7.Text = "Cả phiếu và báo cáo";
            this.rdioControl7.UseVisualStyleBackColor = true;
            // 
            // rdioControl11
            // 
            this.rdioControl11.AutoSize = true;
            this.rdioControl11.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl11.Location = new System.Drawing.Point(17, 58);
            this.rdioControl11.Name = "rdioControl11";
            this.rdioControl11.Size = new System.Drawing.Size(110, 18);
            this.rdioControl11.TabIndex = 2;
            this.rdioControl11.Text = "Hiện trên báo cáo";
            this.rdioControl11.UseVisualStyleBackColor = true;
            // 
            // rdioControl12
            // 
            this.rdioControl12.AutoSize = true;
            this.rdioControl12.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl12.Location = new System.Drawing.Point(17, 38);
            this.rdioControl12.Name = "rdioControl12";
            this.rdioControl12.Size = new System.Drawing.Size(97, 18);
            this.rdioControl12.TabIndex = 1;
            this.rdioControl12.Text = "Hiện trên phiếu";
            this.rdioControl12.UseVisualStyleBackColor = true;
            // 
            // rdioControl13
            // 
            this.rdioControl13.AutoSize = true;
            this.rdioControl13.Checked = true;
            this.rdioControl13.Font = new System.Drawing.Font("Arial", 8.25F);
            this.rdioControl13.Location = new System.Drawing.Point(17, 18);
            this.rdioControl13.Name = "rdioControl13";
            this.rdioControl13.Size = new System.Drawing.Size(56, 18);
            this.rdioControl13.TabIndex = 0;
            this.rdioControl13.TabStop = true;
            this.rdioControl13.Text = "Không";
            this.rdioControl13.UseVisualStyleBackColor = true;
            // 
            // tabMemvar
            // 
            this.tabMemvar.Controls.Add(this.Page1);
            this.tabMemvar.Controls.Add(this.Page2);
            this.tabMemvar.Controls.Add(this.Page4);
            this.tabMemvar.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold);
            this.tabMemvar.Location = new System.Drawing.Point(6, 6);
            this.tabMemvar.Name = "tabMemvar";
            this.tabMemvar.SelectedIndex = 0;
            this.tabMemvar.Size = new System.Drawing.Size(552, 222);
            this.tabMemvar.TabIndex = 0;
            // 
            // FormMemvars
            // 
            this.CancelButton = this.btnCancel;
            this.ClientSize = new System.Drawing.Size(563, 274);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.btnOk);
            this.Controls.Add(this.tabMemvar);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "FormMemvars";
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.Text = "Khai báo tham số hệ thống";
            this.TopMost = true;
            this.Page4.ResumeLayout(false);
            this.Page4.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
            this.Page2.ResumeLayout(false);
            this.Page2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
            this.Page1.ResumeLayout(false);
            this.GBoxMemvar02.ResumeLayout(false);
            this.GBoxMemvar02.PerformLayout();
            this.GBoxMemvar01.ResumeLayout(false);
            this.GBoxMemvar01.PerformLayout();
            this.GBoxMemvar05.ResumeLayout(false);
            this.GBoxMemvar05.PerformLayout();
            this.GBoxMemvar08.ResumeLayout(false);
            this.GBoxMemvar08.PerformLayout();
            this.tabMemvar.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == (Keys.Control | Keys.Return))
            {
                this.Register();
                base.Close();
                return true;
            }
            return base.ProcessCmdKey(ref msg, keyData);
        }

        private void Register()
        {
            //if (string.IsNullOrEmpty(this.txtMemvar01.Text))
            //{
            //    MessageBox.Show("Chưa nhập danh s\x00e1ch tiền tệ sử dụng trong chương trình!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
            //}
            //else
            //{
                AppInstance.Bilingual = this.GBoxMemvar01.Value;
                AppInstance.CostingMethod = this.GBoxMemvar02.Value;
                //AppInstance.ExchangeRate = this.GBoxMemvar04.Value;
                AppInstance.StockWarning = this.GBoxMemvar05.Value;
                //AppInstance.DebitWarning = this.GBoxMemvar06.Value;
                //AppInstance.DiscountType = this.GBoxMemvar07.Value;
                AppInstance.ShowDateTime = this.GBoxMemvar08.Value;
                AppInstance.FilterByUser = this.chkMemvar10.Checked;
                AppInstance.PostDefault = this.chkMemvar01.Checked;
                //AppInstance.LockDefault = this.chkMemvar02.Checked;
                AppInstance.CostingInvoice = this.chkMemvar03.Checked;
                AppInstance.ChangedInvoice = this.chkMemvar04.Checked;
                AppInstance.LockAfterPrint = this.chkMemvar05.Checked;
                AppInstance.ObjectFilter = this.chkMemvar11.Checked;
                AppInstance.ItemFilter = this.chkMemvar12.Checked;
                AppInstance.HistoryCtrl = this.chkMemvar06.Checked;
                //AppInstance.LocationCtrl = this.chkMemvar14.Checked;
                //AppInstance.LotNumberCtrl = this.chkMemvar07.Checked;
                //AppInstance.DeadLineCtrl = this.chkMemvar08.Checked;
                //AppInstance.VATInPrice = this.chkMemvar09.Checked;
                //AppInstance.BarcodeReader = this.chkMemvar13.Checked;
                //AppInstance.Currencies = this.txtMemvar01.Text;
                //AppInstance.DefaultCurrency = this.txtMemvar02.Text;
                //AppInstance.Account5156 = this.txtMemvar03.Text;
                //AppInstance.Account6356 = this.txtMemvar04.Text;
                //AppInstance.Account1331 = this.txtMemvar05.Text;
                //AppInstance.Account33311 = this.txtMemvar06.Text;
                //AppInstance.Account33332 = this.txtMemvar07.Text;
                //AppInstance.Account33331 = this.txtMemvar08.Text;
                //AppInstance.Account3332 = this.txtMemvar09.Text;
                //AppInstance.Account521 = this.txtMemvar10.Text;
                //AppInstance.DefLanguage = this.GBoxMemvar09.Value;
                //AppInstance.FontName = this.txtMemvar22.Text;
                //AppInstance.FontSize = (this.txtMemvar23.Value == SDBNull.Value) ? ((float)0M) : (float.Parse(this.txtMemvar23.Value.ToString()));
                //AppInstance.NumberDigits = (this.txtMemvar12.Value == SDBNull.Value) ? ((int)0M) : (int.Parse(this.txtMemvar12.Value.ToString()));
                //AppInstance.QuantityDecimals = (this.txtMemvar24.Value == SDBNull.Value) ? ((int)0M) : (int.Parse(this.txtMemvar24.Value.ToString()));
                //AppInstance.NormQuantity = (this.txtMemvar25.Value == SDBNull.Value) ? ((int)0M) : (int.Parse(this.txtMemvar25.Value.ToString()));
                //AppInstance.RatioFormat = (this.txtMemvar26.Value == SDBNull.Value) ? ((int)0M) : (int.Parse(this.txtMemvar26.Value.ToString()));
                //AppInstance.ExchangeFormat = (this.txtMemvar13.Value == SDBNull.Value) ? ((int)0M) : (int.Parse(this.txtMemvar13.Value.ToString()));
                //AppInstance.FCPriceDecimals = (this.txtMemvar15.Value == SDBNull.Value) ? ((int)0M) : (int.Parse(this.txtMemvar15.Value.ToString()));
                //AppInstance.LCPriceDecimals = (this.txtMemvar17.Value == SDBNull.Value) ? ((int)0M) : (int.Parse(this.txtMemvar17.Value.ToString()));
                //AppInstance.FCAmountDecimals = (this.txtMemvar14.Value == SDBNull.Value) ? ((int)0M) : (int.Parse(this.txtMemvar14.Value.ToString()));
                //AppInstance.LCAmountDecimals = (this.txtMemvar16.Value == SDBNull.Value) ? ((int)0M) : (int.Parse(this.txtMemvar16.Value.ToString()));
                //AppInstance.PercentDecimals = (this.txtMemvar18.Value == SDBNull.Value) ? ((int)0M) : (int.Parse(this.txtMemvar18.Value.ToString()));
                //AppInstance.AmountRange = (this.txtMemvar19.Value == SDBNull.Value) ? 0M : (decimal.Parse(this.txtMemvar19.Value.ToString()));
                //AppInstance.VATRange = (this.txtMemvar20.Value == SDBNull.Value) ? 0M : (decimal.Parse(this.txtMemvar20.Value.ToString()));
                //AppInstance.DiscountRange = (this.txtMemvar21.Value == SDBNull.Value) ? 0M : (decimal.Parse(this.txtMemvar21.Value.ToString()));
                AppInstance.DefaultSubsidiary = this.txtMemvar27.Text;
                AppInstance.DaysFilter = (this.txtMemvar28.Value == SDBNull.Value) ? ((int) 0M) : (int.Parse( this.txtMemvar28.Value.ToString()));
                AppInstance.DaysBackup = (this.txtMemvar29.Value == SDBNull.Value) ? ((int)0M) : (int.Parse(this.txtMemvar29.Value.ToString()));
                //AppInstance.PaymentMethod = this.txtMemvar30.Text;
                //AppInstance.ProcessCode = this.txtMemvar31.Text;
                //AppInstance.DefaultCode1 = this.txtMemvar32.Text;
                //AppInstance.DefaultCode2 = this.txtMemvar33.Text;
                //AppInstance.DefaultCode3 = this.txtMemvar34.Text;

                MessageBox.Show("Lưu thành công!");
            //}
        }

        //private void txtMemvar01_Validated(object sender, EventArgs e)
        //{
        //    this.txtMemvar02.InputMask = this.txtMemvar01.Text;
        //}
    }
}

